import java.util.Arrays;
import java.util.Scanner;



class Test0 {
    public static void test3() {

    }
}
class Test {

    public static void test2() {

    }
    public void test3() {

    }

    public static void test() {

        test2();
    }
}
public class Main {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5, 6};
        int a = 0;
        System.out.println(Arrays.binarySearch(arr, 0, 4,  6));
    }
}